//
// Created by Admin on 2021/9/20.
//

#ifndef PRACTISE6_LINKEDLIST_H
#define PRACTISE6_LINKEDLIST_H
#include <stdio.h>
#include <stdlib.h>
typedef int DATA;

typedef struct ListNode{
    DATA data;
    struct ListNode* next;
} Node,*pNode,**ppNode;

typedef struct{
    pNode head;
    pNode tail;
    int length;
} Linklist,*pLinklist;

pLinklist makeList();
void showList(pLinklist linklist);
void destroyList(pLinklist linklist);
void sortList(pLinklist linklist);
void insertNode(pLinklist linklist,DATA data,int position);
void removeNode(pLinklist linklist,int position);
#endif //PRACTISE6_LINKEDLIST_H
